{extend name="public/layerbase" /}
{block name="css"}
<link rel="stylesheet" type="text/css" href="__STATIC__/common/layui/css/layui.css">
<style>
    .xianxia{display:none;}
</style>
{/block}

{block name="content"}

<div class="main-container" id="main-container">
    <div class="main-content">
        <div class="page-content">
            <div class="page-content-area">
                <div class="row">
                    <div class="col-xs-12">
                        <div class="widget-box">
                            <div class="widget-header widget-header-blue widget-header-flat">
                                <h4 class="widget-title lighter">新增班级</h4>
                            </div>
                            <div class="widget-body">
                                <div class="widget-main">
                                    <div class="step-content pos-rel" >
                                        <div class="step-pane active" >

                                            <form class="form-horizontal " id="form" method="post">
                                                <input type="hidden" name="id"  value="{$banji.id}">
                                                <div class="form-group">
                                                    <label class="col-sm-3 control-label no-padding-right" > 班级名称：</label>
                                                    <div class="col-sm-9">
                                                        <div class="clearfix">
                                                            <input type="text" name="banjiname" placeholder="输入班级名称" class="col-xs-12 col-sm-9" value="{$banji.banjiname}"/>
                                                        </div>
                                                    </div>
                                                </div>


                                                            <!--<select class="col-xs-12 col-sm-9 form-control" name="type" id="type">-->
                                                                <!--<option value="1" {eq name="origin.type" value="1"}selected{/eq}>线上来源</option>-->
                                                                <!--<option value="2" {eq name="origin.type" value="2"}selected{/eq}>线下来源</option>-->
                                                            <!--</select>-->


                                                <!--<div class="form-group xianxia">-->
                                                <!--<label class="col-sm-3 control-label no-padding-right" > 线下来源类别：</label>-->
                                                <!--<div class="col-sm-7">-->
                                                <!--<div class="clearfix">-->
                                                <!--<select class="col-xs-12 col-sm-9 form-control" name="qdtype" value="">-->
                                                <!--{volist name="leibie" id="vo"}-->
                                                <!--<option value="{$vo.id}" {eq name="origin.qdtype" value="$vo.id" } selected {/eq}>{$vo.title}</option>-->
                                                <!--{/volist}-->
                                                <!--</select>-->
                                                <!--</div>-->
                                                <!--</div>-->
                                                <!--</div>-->

                                                <!--<div class="form-group">-->
                                                    <!--<label class="col-sm-3 control-label no-padding-right" > 时间：</label>-->
                                                    <!--<div class="col-sm-9">-->
                                                        <!--<div class="clearfix">-->
                                                            <!--<input type="text" name="time" placeholder="输入上课时间"  class="col-xs-12 col-sm-9"  value="{$banji.time}"/>-->
                                                        <!--</div>-->
                                                    <!--</div>-->
                                                <!--</div>-->
                                                <div class="form-group">
                                                    <label class="col-sm-3 control-label no-padding-right" > 排序：</label>
                                                    <div class="col-sm-9">
                                                        <div class="clearfix">
                                                            <input  type="text" name="sort" class="col-xs-12 col-sm-9" value="{$banji.sort}" >
                                                        </div>
                                                    </div>
                                                </div>
                                                <div class="form-group">
                                                    <label class="col-sm-3 control-label no-padding-right">是否启用:</label>
                                                    <div class="col-sm-9">
                                                        <div class="clearfix">
                                                            <input name="status"  type="checkbox"{if condition="$banji.status==1" } checked  value="1"{else/}value="0" {/if} />
                                                        </div>
                                                    </div>
                                                </div>
                                                <hr />
                                                <div class="clearfix" style="text-align: center">
                                                    <div class="col-md-offset-3 col-md-9">
                                                        {:token()}
                                                        <button class="btn btn-info" type="submit" id="submit">
                                                            <i class="ace-icon fa fa-check bigger-110"></i>
                                                            提交
                                                        </button>

                                                        &nbsp; &nbsp; &nbsp;
                                                        <button class="btn" type="reset">
                                                            <i class="ace-icon fa fa-undo bigger-110"></i>
                                                            重置
                                                        </button>
                                                    </div>
                                                </div>
                                            </form>

                                        </div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
</div>

{/block}

{block name="js"}
<script src="__STATIC__/common/layui/layui.js"></script>
<script src="__STATIC__/common/layui/layuidate.js"></script>
<script>
    $(function () {

    });
    var define_fileds =  {
        name: {
            message: '状态验证失败',
            validators: {
                notEmpty: {
                    message: '状态不能为空'
                },
            }
        },
    };
    var ajaxurl = "{:url('edit')}";


</script>
{/block}